package org.demo.quartz.listener;

import com.alibaba.druid.support.json.JSONUtils;
import org.quartz.*;

public class TestSchedulerListener implements SchedulerListener {
    @Override
    public void jobScheduled(Trigger trigger) {
        System.out.println("YH:jobScheduled  "+ trigger.toString());
    }

    @Override
    public void jobUnscheduled(TriggerKey triggerKey) {
        System.out.println("YH:jobUnscheduled  "+ triggerKey.toString());
    }

    @Override
    public void triggerFinalized(Trigger trigger) {
        System.out.println("YH:triggerFinalized  "+ trigger.toString());
    }

    @Override
    public void triggerPaused(TriggerKey triggerKey) {
        System.out.println("YH:triggerPaused  "+ triggerKey.toString());
    }

    @Override
    public void triggersPaused(String triggerGroup) {
        System.out.println("YH:triggersPaused  "+ triggerGroup.toString());
    }

    @Override
    public void triggerResumed(TriggerKey triggerKey) {
        System.out.println("YH:triggerResumed  "+ triggerKey.toString());
    }

    @Override
    public void triggersResumed(String triggerGroup) {
        System.out.println("YH:triggersResumed  "+ triggerGroup.toString());
    }

    @Override
    public void jobAdded(JobDetail jobDetail) {
        System.out.println("YH:jobAdded  "+ jobDetail);
    }

    @Override
    public void jobDeleted(JobKey jobKey) {
        System.out.println("YH:jobDeleted  "+ jobKey);
    }

    @Override
    public void jobPaused(JobKey jobKey) {
        System.out.println("YH:jobPaused  "+ jobKey);
    }

    @Override
    public void jobsPaused(String jobGroup) {
        System.out.println("YH:jobsPaused  "+ jobGroup);
    }

    @Override
    public void jobResumed(JobKey jobKey) {
        System.out.println("YH:jobResumed  "+ jobKey);
    }

    @Override
    public void jobsResumed(String jobGroup) {
        System.out.println("YH:jobsResumed  "+ jobGroup);
    }

    @Override
    public void schedulerError(String msg, SchedulerException cause) {
        System.out.println("YH:schedulerError  "+ cause.toString());
    }

    @Override
    public void schedulerInStandbyMode() {
        System.out.println("YH:schedulerInStandbyMode  ");
    }

    @Override
    public void schedulerStarted() {
        System.out.println("YH:schedulerStarted  ");
    }

    @Override
    public void schedulerStarting() {
        System.out.println("YH:schedulerStarting  ");
    }

    @Override
    public void schedulerShutdown() {
        System.out.println("YH:schedulerShutdown  ");
    }

    @Override
    public void schedulerShuttingdown() {
        System.out.println("YH:schedulerShuttingdown  ");
    }

    @Override
    public void schedulingDataCleared() {
        System.out.println("YH:schedulingDataCleared  ");
    }
}
